package com.sharp.kernel.mybatis.repository.inf;

import tk.mybatis.mapper.entity.Example;

/**
 * Title: SqlDeleteRepository
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/8 15:52
 */
public interface SqlUpdateRepository<T> {

    int updateByPrimaryKey(T entity);

    int updateByPrimaryKeySelective(T entity);

    int update(T entity, Example example);

    int updateSelective(T entity, Example example);

    int update(T entity, String... fieldNameArray);

    int updateSelective(T entity, String... fieldNameArray);

}
